package com.gouda.merchant.exception;

/**
 * Created with IntelliJ IDEA.
 * User: souu
 * Date: 15-3-30
 * Time: 下午4:57
 * To change this template use File | Settings | File Templates.
 */
public enum ErrorCode {
    SUCCESS("1", "success"),
    
    FAILED("2", "error"),
    
    EC_400000("-400000", "消息体格式错误"),
    /**
     * 请求参数不正确
     */
    EC_400004("-400004", "请求参数不正确"),

    EC_400005("-400005", "该编码已存在");

    private String result;
    private String message;

    private ErrorCode(String code, String message) {
        this.result = code;
        this.message = message;
    }

    public String getCode() {
        return result;
    }

    public void setCode(String code) {
        this.result = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
